#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QAction>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    int value;
    int linesize;
public slots:
    void rSlot(bool checked);
    void gSlot(bool checked);
    void bSlot(bool checked);
    void costomColorSlot(bool checked);//自定义槽函数

private slots:
    void on_radioButton_2_clicked();
    void on_radioButton_clicked();
    void on_radioButton_3_clicked();
    void on_horizontalSlider_valueChanged(int value);
    void on_lineAction_triggered(bool checked);
    void on_saveAction_triggered(bool checked);
    void on_openAction_triggered(bool checked);
    void on_textAction_triggered(bool checked);
    void on_linesAction_triggered(bool checked);
    void on_ellipseAction_triggered(bool checked);
    void on_rectAction_triggered(bool checked);
    void on_saveasAction_triggered(bool checked);
    void on_undoAction_triggered(bool checked);


private:
    Ui::MainWindow *ui;
      QAction *pRed;
      QAction *pGreen;
      QAction *pBlue;
      QAction *pCustomColor;
      QAction *openAction;
      QAction *saveAction;
      QAction *saveasAction ;
      QAction *lineAction;
      QAction *rectAction;
      QAction *ellipseAction;
      QAction *textAction;
      QAction *linesAction;
      QAction *undoAction;


};
#endif // MAINWINDOW_H
